package com.xdtech.cc.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2016-05-29 21:53:36
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="CC_TRADE_RECORD")
public class TradeRecord extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="HANDLING_FEE_POINT")
	private Double handlingFeePoint;
	@Column(name="CHARGE_DATE")
	private String chargeDate;
	@Column(name="MERCHANT_NAME")
	private String merchantName;
	@Column(name="MERCHANT_FEE")
	private Double merchantFee;
	@Column(name="HANDLING_FEE")
	private Double handlingFee;
	@Column(name="PAY_CARD_MONEY")
	private String payCardAmount;
	@Column(name="ARRIVAL_AMOUNT")
	private Double arrivalAmount;
	@Column(name="PAY_CARD_TIME")
	private String payCardTime;
	@Column(name="ARRIVAL_AMOUNT_TIME")
	private String arrivalAmountTime;
	@Column(name="ARRIVAL_AMOUNT_CARD")
	private String arrivalAmountCard;

	//多对一
	@ManyToOne
    @JoinColumn(name = "CC_ACCOUNT_ID")
    Account account;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setHandlingFeePoint(Double handlingFeePoint) {
		this.handlingFeePoint = handlingFeePoint;
	}
	public Double getHandlingFeePoint() {
		return handlingFeePoint;
	}
	public void setChargeDate(String chargeDate) {
		this.chargeDate = chargeDate;
	}
	public String getChargeDate() {
		return chargeDate;
	}
	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}
	public String getMerchantName() {
		return merchantName;
	}
	public void setMerchantFee(Double merchantFee) {
		this.merchantFee = merchantFee;
	}
	public Double getMerchantFee() {
		return merchantFee;
	}
	public void setHandlingFee(Double handlingFee) {
		this.handlingFee = handlingFee;
	}
	public Double getHandlingFee() {
		return handlingFee;
	}
	public void setPayCardAmount(String payCardAmount) {
		this.payCardAmount = payCardAmount;
	}
	public String getPayCardAmount() {
		return payCardAmount;
	}
	public void setArrivalAmount(Double arrivalAmount) {
		this.arrivalAmount = arrivalAmount;
	}
	public Double getArrivalAmount() {
		return arrivalAmount;
	}
	public void setPayCardTime(String payCardTime) {
		this.payCardTime = payCardTime;
	}
	public String getPayCardTime() {
		return payCardTime;
	}
	public void setArrivalAmountTime(String arrivalAmountTime) {
		this.arrivalAmountTime = arrivalAmountTime;
	}
	public String getArrivalAmountTime() {
		return arrivalAmountTime;
	}
	public void setArrivalAmountCard(String arrivalAmountCard) {
		this.arrivalAmountCard = arrivalAmountCard;
	}
	public String getArrivalAmountCard() {
		return arrivalAmountCard;
	}

	public Account getAccount()
	{
		return account;
	}
	public void setAccount(Account account)
	{
		this.account = account;
	}
}
